import ectwitter as twit
import time

PERSON = ""
PASSWORD = ""

addlist = []
addlist.append("")

j = twit.blocked_users(PERSON, PASSWORD)
for person in j:
    twit.unblock(person, PERSON, PASSWORD)

for person in addlist:
    twit.add_friend(person, PERSON, PASSWORD)


twit.add_friends_of_another("", PERSON, PASSWORD)

myfriends = twit.friends(PERSON)
myfollowers = twit.followers(PERSON)

for person in myfollowers:
    twit.add_friend(person, PERSON, PASSWORD)
    
badFriends = twit.find_bad_friends(PERSON, 0.5)
print "bad friends", str(len(badFriends))

badFollowers = twit.find_bad_followers(PERSON, 0.05)
print "bad followers", str(len(badFollowers))

for person in badFriends:
    twit.remove_friend(person, PERSON, PASSWORD)
    
for person in droplist:
    twit.remove_friend(person, PERSON, PASSWORD)
    
for person in badFollowers:
    twit.block(person, PERSON, PASSWORD)

